<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="shortcut icon" href="<%= BASE_URL %>LOGO1.png">
  <title>化工大脑</title>
  <script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.g6-3.1.1/build/g6.js"></script>
  <script src="https://gw.alipayobjects.com/os/antv/assets/lib/jquery-3.2.1.min.js"></script>
  <script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.hierarchy-0.5.0/build/hierarchy.js"></script>
  <script src="./js/jquery.js"></script>
  <!-- 站点配置 -->
  <script>
    window.SITE_CONFIG = {};
    window.SITE_CONFIG['version'] = 'v2.1.0';
    window.SITE_CONFIG['nodeEnv'] = '<%= process.env.VUE_APP_NODE_ENV %>';
    window.SITE_CONFIG['apiURL'] = ''; // api请求地址
    window.SITE_CONFIG['storeState'] = {}; // vuex本地储存初始化状态（用于不刷新页面的情况下，也能重置初始化项目中所有状态）
    window.SITE_CONFIG['contentTabDefault'] = { // 内容标签页默认属性对象
      'name': '', // 名称, 由 this.$route.name 自动赋值（默认，名称 === 路由名称 === 路由路径）
      'params': {}, // 参数, 由 this.$route.params 自动赋值
      'query': {}, // 查询参数, 由 this.$route.query 自动赋值
      'menuId': '', // 菜单id（用于选中侧边栏菜单，与this.$store.state.sidebarMenuActiveName进行匹配）
      'title': '', // 标题
      'isTab': true, // 是否通过tab展示内容?
      'iframeURL': '' // 是否通过iframe嵌套展示内容? (以http[s]://开头, 自动匹配)
    };
    window.SITE_CONFIG['appCode'] = 'PLANTMATE_OPERATION_BACKEND';
    window.SITE_CONFIG['topmenuList'] = []; // 顶部菜单列表（后台返回，未做处理）
    window.SITE_CONFIG['menuList'] = []; // 左侧菜单列表（后台返回，未做处理）
    window.SITE_CONFIG['permissions'] = []; // 页面按钮操作权限（后台返回，未做处理）
    window.SITE_CONFIG['dynamicRoutes'] = []; // 动态路由列表
    window.SITE_CONFIG['dynamicMenuRoutes'] = []; // 动态(菜单)路由列表
    window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false; // 动态(菜单)路由是否已经添加的状态标示（用于判断是否需要重新拉取数据并进行动态添加操作）
  </script>
  <!-- 开发环境 -->
  <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
  <!-- 服务器 -->
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://10.30.6.10/api';</script> -->
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'https://c-brain-uat.plantmate.com/api';</script> -->
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://60.12.1.38:9400';</script> -->
  <script>window.SITE_CONFIG['apiURL'] = 'http://10.30.5.64:8090/gov';</script>
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://60.12.1.44:8091/gov';</script> -->
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://192.168.137.219:9408';</script> -->
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://60.12.1.38:9400';</script> -->
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://10.30.6.10/gov';</script> -->
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://172.20.10.6:9400';</script> -->
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://59.202.54.250/api';</script> -->
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://10.30.6.10:9400';</script> -->
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://172.20.10.6:9400';</script> -->
  <!-- <script>window.SITE_CONFIG['sitURL'] = 'http://sit.plantmate.supcon.com:8888/api'</script> -->

  <% } %>
  <!-- 集成测试环境 -->
  <% if (process.env.VUE_APP_NODE_ENV === 'prod:sit') { %>
    <!-- 展厅 -->
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://10.52.24.22/gov';</script> -->
  <script>window.SITE_CONFIG['apiURL'] = window.location.origin + '/gov';</script>
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://10.30.5.64:8090/gov';</script> -->
  <script>window.SITE_CONFIG['sitURL'] = 'http://predevmate.plantmate.supcon.com:8888/api';</script>
  <% } %>
  <!-- 验收测试环境 -->
  <% if (process.env.VUE_APP_NODE_ENV === 'prod:uat') { %>
  <!-- <script>window.SITE_CONFIG['apiURL'] = 'http://59.202.54.250/api';</script> -->
  <script>window.SITE_CONFIG['apiURL'] = 'http://112.124.241.71/gov';</script>
  <!-- <script>window.SITE_CONFIG['apiURL'] = window.location.origin + '/api';</script> -->
  <script>window.SITE_CONFIG['sitURL'] = 'https://www.plantmate.com/api';</script>
  <% } %>
  <!-- 生产环境 -->
  <% if (process.env.VUE_APP_NODE_ENV === 'prod') { %>
  <script>window.SITE_CONFIG['apiURL'] = 'https://c-brain-uat.plantmate.com/api';</script>
  <script>window.SITE_CONFIG['sitURL'] = 'https://www.plantmate.com/api';</script>
  <% } %>
</head>

<body>
  <div id="app"></div>
</body>
</html>